package com.xichen.service.impl;

import com.xichen.dao.UserRoleMapper;
import com.xichen.pojo.User;
import com.xichen.pojo.UserRole;
import com.xichen.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author tang wei
 * @version 1.0
 * @date 2020/7/18 13:09
 */
@Service
public class UserRoleServiceImpl implements UserRoleService {
    @Autowired
    private UserRoleMapper userRoleMapper;
    /**
     * 通过用户的权限数字，找到对应的动态菜单
     * @param userRole
     * @return
     */
    @Override
    public List<UserRole> findUserRole(Integer userRole) {
        return userRoleMapper.findUserRole(userRole);
    }
}
